package com.ruoyi.project.treat.service.impl;

import com.ruoyi.project.treat.domain.TreatRegister;
import com.ruoyi.project.treat.mapper.TreatRegisterMapper;
import com.ruoyi.project.treat.service.ITreatRegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TreatRegisterServiceImpl implements ITreatRegisterService {
    @Autowired
    private TreatRegisterMapper treatRegisterMapper;

    /**
     * 查询挂号数据集合
     *
     * @param register 挂号信息
     * @return 数据集合
     */
    @Override
    public List<TreatRegister> selectRegisterList(TreatRegister register) {
        return treatRegisterMapper.selectRegisterList(register);
    }

    /**
     * 根据挂号状态获取挂号详细信息
     *
     * @param registerStatus 挂号状态
     * @return 挂号对象信息
     */
    @Override
    public List<TreatRegister> selectRehisterByRegisterStatus(String registerStatus) {
        return treatRegisterMapper.selectRehisterByRegisterStatus(registerStatus);
    }
}
